package com.smallrig.mall.template.auto;


import org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.time.LocalDateTime;

/**
 * @author GDS
 *
 * 跟据创建时间分表的接口
 */

public interface AutoCreateTable {



	String buildNodes(String oldActualDataNodes);

	/**
	 *
	 * @param dataSource 数据源
	 * @param logicTable 逻辑表名
	 */
	void createTables(ShardingSphereDataSource dataSource, String logicTable) throws SQLException;

}
